<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <style>
        @page {
            size: 279mm 200mm;
        }

        .head {
            width: 100%;
            height: 90px;
            text-align: center;
        }

        .head span {
            width: 100%;
            font-size: 30px;
            font-weight: 700;
            color: #333333;
            line-height: 35px;
            letter-spacing: 40px;

        }

        .lableTd {
            font-weight: bold;
        }

        body {
            font-family: SimSun;
            font-size: 18px;

        }

        .left {
            text-align: left;
        }

        .right {
            text-align: right;
        }

        .center {
            text-align: center;
        }

        .demo3 {
            border: 1px solid #1c1a1a;
            border-collapse: collapse;
            table-layout: fixed; /* 关键属性：固定表格布局 */
            width: 100%; /* 表格宽度 */
        }

        .demo3 th, .demo3 td {
            border: 1px solid #1c1a1a;
            padding: 3px; /* 在单元格内部添加间距 */
            word-wrap: break-word; /* 允许长单词换行 */
            overflow-wrap: break-word; /* 更现代的换行属性 */
            white-space: normal; /* 允许文本换行 */
        }

    </style>
</head>

<body>
<#escape x as x?html>
    <div>
        <div>
            <div style="height: 75px"></div>
            <table class="headTable" width="100%" border="0" cellspacing="0" cellpadding="0"
                   style=" line-height: 42px;">
                <tbody>
                <tr>
                    <td colspan="3" class="head" style="text-align: center"><span>${YWZTMC!""}<br/>收款收据</span>
                    </td>
                </tr>
                <tr>
                    <td width="34%">
                    </td>
                    <td width="34%"></td>
                    <td width="32%" style="text-align: right;">
                    </td>
                </tr>
                <tr>
                    <td width="33%"><span class="lableTd">开票日期：</span>${ERDAT!""}</td>
                    <td></td>
                    <td style="text-align: left;"><span class="lableTd">收据号码：</span>${SJHM!""}</td>
                </tr>
                </tbody>
            </table>
            <#assign columnt1= 10  />
            <#assign columnt2= 7  />
            <#assign columnt3= 6  />
            <#assign columnt4= 10  />
            <#assign columnt5= 10 />
            <#assign columnt6= 10 />
            <#assign columnt7= 10  />
            <#assign columnt8= 7  />
            <#assign columnt9= 5  />
            <#assign columnt10= 6  />
            <#assign columnt11= 100 - columnt1 - columnt2 - columnt3 - columnt4
            - columnt5 - columnt6 - columnt7 - columnt8 - columnt9 - columnt10/>

            <#assign lineHpx= 65  />

            <div width="100%">
                <table width="100%" border="0.1" cellspacing="0" cellpadding="0" class="demo3">
                    <colgroup>
                        <col width="${columnt1}%"/>
                        <col width="${columnt2}%"/>
                        <col width="${columnt3}%"/>
                        <col width="${columnt4}%"/>
                        <col width="${columnt5}%"/>
                        <col width="${columnt6}%"/>
                        <col width="${columnt7}%"/>
                        <col width="${columnt8}%"/>
                        <col width="${columnt9}%"/>
                        <col width="${columnt10}%"/>
                        <col width="${columnt11}%"/>
                    </colgroup>
                    <thead>
                    <tr class="center trMxTitle" style="height: ${lineHpx}px;">
                        <td colspan="2" class="lableTd">缴费单位或个人</td>
                        <td colspan="9" class="left">${JKDW!""}</td>
                    </tr>
                    <tr class="center trMxTitle" style="height: ${lineHpx}px;">
                        <td colspan="2" class="lableTd">款项内容</td>
                        <td colspan="6" class="left">${KXNR!""}</td>
                        <td colspan="2" class="lableTd">收款方式</td>
                        <td class="left">${SKFS!""}</td>
                    </tr>
                    <tr class="center trMxTitle" style="height: ${lineHpx}px;">
                        <td class="lableTd">人民币<br/>大写</td>
                        <td colspan="6" class="left">${JEDX!""}</td>
                        <td colspan="2" class="lableTd">收款<br/>金额</td>
                        <td colspan="2" class="left">￥${SKJR!""}</td>
                    </tr>
                    <tr class="center" style="height: 85px;">
                        <td class="lableTd">收款单<br/>位盖章</td>
                        <td colspan="2" class="left">${YWZTMC!""}</td>
                        <td class="lableTd">收款人<br/>盖章</td>
                        <td class="left">${SKR!""}</td>
                        <td class="lableTd">客户<br/>盖章</td>
                        <td class="left"></td>
                        <td  class="lableTd" colspan="2">备注</td>
                        <td colspan="2" class="left">${MEMO!""}</td>
                    </tr>
                    </thead>
                </table>
                <br/>
            </div>
        </div>
    </div>
</#escape>
</body>

</html>